package msu.ml.tools.birdminer;

import msu.ml.core.*;
import java.util.*;

public class ManualSweepProvider implements ISweepProvider
{
   private List<String> sweeps;
   private IDataSource source;

   public ManualSweepProvider(IDataSource source)
   {
      this.sweeps = new ArrayList<String>();
      this.source = source;
   }

   public void addSweep(String vname)
   {
      this.sweeps.add(vname);
   }

   public int count()
   {
      return this.sweeps.size();
   }

   public NxInstances get(int i)
   {
      return this.source.getSweepForVolume(this.sweeps.get(i));
   }

   public String getName(int i)
   {
      return this.sweeps.get(i);
   }
}
